package com.zhike.common.dto;

import java.util.ArrayList;

import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel
public class GroupInviteJoinDTO {
    @ApiModelProperty(value = "加群来源，\"0\"表示通过邀请加群、\"1\"表示通过扫描二难码加群，\"2\":名片入群 \"3\":主动入群 默认可为null（为null将默认是通过邀请加群）", required = true)
    @NotNull(message = "缺少参数srcFrom")
    private String srcFrom;

    @ApiModelProperty(value = "被邀请的群ID")
    @NotNull(message = "缺少参数inviteToGid")
    private String inviteToGid;

    @ApiModelProperty(value = "被邀请者群成员")
    @NotNull(message = "群成员不能为空")
    private ArrayList<GroupMemberEntity> members = new ArrayList<>();

    @ApiModelProperty(value = "邀请描述")
    private String desc;

}
